#ifndef _BASE_LIST_
#define _BASE_LIST_
#include "cocos2d.h"

USING_NS_CC;

class BaseList :public cocos2d::Layer
{
public:
	BaseList(void);
	~BaseList(void);
public:
	virtual bool init();
	CREATE_FUNC(BaseList);
public:	
	bool onTouchBegan(Touch* touch,Event* event);
	void onTouchesMoved(Touch* touch,Event* event);
	void onMouseScroll(cocos2d::Event* event);
public:
	void setListPosition(cocos2d::Vec2 position);
	Vec2 getListPosition();
	void setPadingTop(int padingTop);
	int getPadingTop();
	void setPadingLeft(int padingLeft);
	int getPadingLeft();
	void setRowNum (int rowNum);
	int getRowNum();
	void setItems(Vector<MenuItem*> vc_items);
	//Array getItems()	
private:
	Menu* m_itemMenu;
	cocos2d::Vec2 m_position;
	int m_padingTop;
	int m_padingLeft;
	int m_rowNum;
	Size m_contentSize;
	Vector<MenuItem*> vc_menuItems;
};

#endif //_BASE_LIST_